package com.onlinelearn.paymentservice.repository;

import com.onlinelearn.paymentservice.model.Payment;
import com.onlinelearn.paymentservice.model.PaymentStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PaymentRepository extends JpaRepository<Payment, Long> {
    List<Payment> findByOrderStudentId(Long studentId);
    List<Payment> findByOrderStatus(PaymentStatus status);
} 